<template>
	<view>
		<uni-section class="pub-title" title="保障范围" type="line"></uni-section>
		<view v-for="(item ,index) in chanpList" :key="index">
			<uni-card class="icon-radius font-bold" :title="item.chanpmc" :isShadow="true" extra="查看详情 >" @click="baozfwDetail(item)">
				<image style="width:100%;" mode="scaleToFill" :src="item.chanpzt"></image>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				chanpList: []
			}
		},

		onLoad() {
			uni.request({
				url: getApp().globalData.serviceUrl + "/chanp/kuybChanp/list",
				data: {
					peifl: 1,
					pageNo: 1,
					pageSize:99
				},
				method: 'GET',
				success: (resp) => {
					if (resp.data.success) {
						this.chanpList = resp.data.result.records
					}
				},

			})
		},

		methods: {
			baozfwDetail(item) {
				uni.setStorageSync("baozfwDetail", item)
				uni.navigateTo({
					url:"../baozfwDetail/baozfwDetail"
				})
			}
		}
	}
</script>

<style>

</style>
